<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <!-- 全屏 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 上方栏显示 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 不自动识别号码 -->
    <meta name="format-detection" content="telephone=no">
    <!-- Include js plugin -->
    <title>面授课详情</title>
    <link rel="stylesheet" href="/static/wap/skin/css/layout.css">
    <link rel="stylesheet" href="/static/wap/skin/css/demos.css">

    <link rel="stylesheet" href="//cdn.bootcss.com/weui/1.1.1/style/weui.min.css">
    <link rel="stylesheet" href="//cdn.bootcss.com/jquery-weui/1.0.1/css/jquery-weui.min.css">

    <!--我可以删的下面有了-->
    <script src="/static/wap/weui/js/jquery.min.js"></script>
</head>

<body>
<header class="brB">
    <div class="h_top">
        <div class="hLeft"><a href="/banke" class="icoH icoReturn mt20"></a></div>
        <div class="hCenter"><span class="tit c-3ac9af">面授课详情</span></div>
        <div class="hRight"><a href="javascript:;" class="icoH icoShare mt20"></a></div>
    </div>
</header>
<div class="warp">
    <div class="product_details">
        <div class="ith_img2">
            <img src="<{$course['course_img']}>">
        </div>
    </div>
    <div class="fix b-FFFFFF p20 LH50 brB">
        <div class="layout-box ptb20 line-bottom2">
            <div class="box-col  fwb"><{$course['title']}></div>
            <div class="LH20 pl25 c-666666"><i class="icoH icoShare2"></i><span class="pl20">分享</span></div>
        </div>
        <ul class="vd_listXQ line-bottom2 ptb20">

            <li>
                <div class="layout-box">
                    <div class="item">
                        <label  class="fs20">总课时</label><div class="fs28"><{$course['course_time']}>课时</div>
                    </div>

                </div>
            </li>

        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">

            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">适合人群</label><div class="fs28"><{$course['suitable']}></div>
                    </div>

                </div>
            </li>

        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">

            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">学到什么</label><div class="fs28"><{$course['learn_what']}></div>
                    </div>

                </div>
            </li>

        </ul>
        <ul class="vd_listXQ line-bottom2 ptb20">

            <li>
                <div class="layout-box">
                    <div class="item">
                        <label class="fs20">所学科目</label>
                        <div class="fs28">
                          <{foreach from=$subject_list item=item}>
                             <p style="padding-right: 10px;"><{$item['title']}></p>
                             <{/foreach}>
                        </div>
                    </div>

                </div>
            </li>

        </ul>
        <!-- <div class="LH60 pt10">
            <div class="c-999999"><span class="mr30">97.13% 满意度</span><span>5.2万 次学习</span></div>
        </div> -->
    </div>

    <div class="fix b-FFFFFF public-tab">
        <div class="mt layout-box tac LH80 oh brB">
            <!-- <div class="sp box-col"><span>课程介绍</span></div> -->
            <div class="sp box-col"><span>课程详情</span></div>
            <div class="sp box-col"><span>课程评价（15）</span></div>
        </div>
        <div class="mc">
            <!--<div class="tabItem" id="detailed">

                 <div class="fix b-f4f4f4 LH50 oh">
    <div class="b-FFFFFF LH80 p20">
        <dl>
            <dd class="b-f4f4f4 LH40">
                <table class="tableForm">
                    <colgroup>
                    <col width="25%" />
                    <col width="75%" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <td class="tac">适用人群</td>
                            <td><{$course['suitable']}></td>
                        </tr>
                        <tr>
                            <td class="tac">学到什么</td>
                            <td>
                                <{$course['learn_what']}>
                            </td>
                        </tr>
                        <tr>
                            <td class="tac">所学科目</td>
                            <td>
                             <{foreach from=$subject_list item=item}>
                                <p style="padding-right: 10px;"><{$item['title']}></p>
                                <{/foreach}>

                            </td>
                        </tr>

                    </tbody>
                </table>
            </dd>
        </dl>

    </div>
</div>
            </div> -->
            <div class="tabItem" id="notice">
                <div class="LH100 tac">
                <{$course['detail']}>

                </div>
            </div>
            <div class="tabItem" id="comment">
                <div class="fix p20 b-FFFFFF oh">
    <dl class="layout-box brB ptb20">
        <dt class="mr20">
            <div class="ith_img" style="width:2rem; height:2rem; background-image:url(/static/wap/skin/temp/200200.png)"></div>
        </dt>
        <dd class="box-col">
            <div class="">潇潇</div>
            <div><span class="c-666666">2016年11月3日</span></div>
            <div>服务非常周到，体检项目也非常全面。以后会定期 来这体检。</div>
        </dd>
    </dl>
    <dl class="layout-box brB ptb20">
        <dt class="mr20">
            <div class="ith_img" style="width:2rem; height:2rem; background-image:url(/static/wap/skin/temp/200200.png)"></div>
        </dt>
        <dd class="box-col">
            <div class="">潇潇</div>
            <div><span class="c-666666">2016年11月3日</span></div>
            <div>服务非常周到，体检项目也非常全面。以后会定期 来这体检。</div>
        </dd>
    </dl>
    <dl class="layout-box brB ptb20">
        <dt class="mr20">
            <div class="ith_img" style="width:2rem; height:2rem; background-image:url(/static/wap/skin/temp/22308077_1470910123.png)"></div>
        </dt>
        <dd class="box-col">
            <div class="">潇潇</div>
            <div><span class="c-666666">2016年11月3日</span></div>
            <div>服务非常周到，体检项目也非常全面。以后会定期 来这体检。</div>
        </dd>
    </dl>
</div>
            </div>
        </div>
    </div>

</div>
<!--star 底下购物按钮-->
<div class="p_fotbtn layout-box tac brT">
    <!-- <div class="box-col tac" style="line-height:1.2">
        <a href="/"><img style="width:1.5rem; margin:0 auto;" src="/static/wap/skin/img/ico_Star2.png"><p>网校首页</p></a>
    </div>
     <div class="box-col tac" style="line-height:1.2">
        <a href="/"><img style="width:1.5rem; margin:0 auto;" src="/static/wap/skin/img/ico_Star2.png"><p>视频课</p></a>
    </div> -->
    <!-- <div class="box-col"><a class="b-ffa200 c-FFFFFF" href="#">加入购物车</a></div> -->
    <{if $logged_in == 1}>
    <div class="box-col"><a class="b-ff5a00 c-FFFFFF" href="/banke/baoming/<{$course['id']}>">立即报名</a></div>
    <{elseif $logged_in ==0}>
    <div class="box-col"><a class="b-ff5a00 c-FFFFFF" id="buy_now" href="javascript:;">立即报名</a></div>
    <{/if}>
</div>
<!--end 底下购物按钮-->
<!-- body 最后 -->
<!-- <script src="/static/wap/weui/js/jquery.min.js"></script> -->
<!-- <script src="/static/wap/weui/js/jquery-weui.min.js"></script> -->
<script src="//cdn.bootcss.com/jquery-weui/1.0.1/js/jquery-weui.min.js"></script>
<script src="/static/wap/skin/js/demos.js"></script>
<script>
    $(function(){
        // $("#buy_now").click(function(){
        //     //如果参数过多，建议通过 object 方式传入
        //     $.login({
        //       title: '请登录',
        //       text: '',
        //       username: '',  // 默认用户名
        //       password: '',  // 默认密码
        //       onOK: function (username, password) {
        //         //点击确认
        //         $.post('/login/ajax',{'phone':username,'pwd':password},function (res){
        //             var json = eval('(' + res + ')');
        //             if(json.result ==0){
        //
        //                 $.toast("登录成功");
        //                 window.location.reload();
        //             }
        //
        //         });
        //
        //       },
        //       onCancel: function () {
        //         //点击取消
        //         $.toast("取消登录", "cancel");
        //       }
        //     });
        // });
        $("#buy_now").click(function(){
            is_login = <{$logged_in}>;
            if(is_login > 0){
                $("#buy_form").submit();
            }else{
              alert("你还没登录，请先登录！");
              window.location.href="/logreg";
            }
          });
    })

    // $.login("自定义的消息内容", function(username, password) {
    //     // 这里进行登录操作
    //     }, function() {
    // });

    // //如果参数过多，建议通过 object 方式传入
    // $.login({
    //   title: '标题',
    //   text: '内容文案',
    //   username: 'tom',  // 默认用户名
    //   password: 'tom',  // 默认密码
    //   onOK: function (username, password) {
    //     //点击确认
    //   },
    //   onCancel: function () {
    //     //点击取消
    //   }
    // });
</script>
</body>
</html>
